from pydantic import BaseModel, constr, EmailStr, UUID4

class sCustomerCreate(BaseModel):
    name: str
    surname: str
    email: EmailStr
    passport: constr(max_length=11)
    phone: constr(max_length=11)
    pwd: constr(min_length=4)

class sCustomerUpdate(BaseModel):
    id: UUID4
    name: str
    surname: str
    email: EmailStr
    passport: constr(max_length=11)
    phone: constr(max_length=11)
    pwd: constr(min_length=4)

class sCustomerDelete(BaseModel):
    id: UUID4
    pwd: constr(min_length=4)

class sCustomerLogin(BaseModel):
    phone: constr(max_length=11)
    pwd: constr(min_length=4)

class sCustomerCheck(BaseModel):
    id: UUID4